<?php

/* * ************************************************************************* 
 * item_attr_info_model.class.php
 * Encoding : UTF-8
 * Desc. :商品属性数据库实现类
 * Created on : 2013-4-23 10:45:07 by Aiden , aiden.ke@doosnet.net
 * Updated on : 2013-4-23 10:45:07 by Aiden , aiden.ke@doosnet.net
 * ************************************************************************* */

defined('IN_SPIDER') or exit('No permission resources.');

pc_base::load_sys_class('model', '', 0);

class item_attr_info_model extends model {

    public function __construct() {
        $this->db_config = pc_base::load_config('database');
        $this->db_setting = 'default';
        $this->table_name = '';
        parent::__construct();
    }

    /**
     * 设置商品数据表
     * @param string $tablename 商城名称
     */
    public function table_name($mallname) {
        $this->table_name = $this->db_config[$this->db_setting]['tablepre'] . $mallname;
        return $this->table_name;
    }

}

?>